package model

import (
	mssql "github.com/denisenkom/go-mssqldb"
	"time"
)

type Club struct { //社团信息
	Cid               int           `gorm:"not null;primary-key;column:id"`
	Cname             string        `gorm:"not null;column:Cname"`
	Address           int           `gorm:"not null;column:Address"` //1南校/2北校/3珠海/4深圳/5东校
	Type              int           `gorm:"not null;column:Type"`    //1思想政治类 2学术科技类 3体育竞技类 4志愿公益类 5文化艺术类
	Aim               mssql.VarChar `gorm:"not null;column:Aim"`
	Edate             time.Time     `gorm:"column:Edate"`
	Odate             time.Time     `gorm:"column:Odate"`
	State             int           `gorm:"not null;column:State"` //true表示社团招新中
	Exist             int           `gorm:"not null;column:Exist"` //true表示已通过
	Unit              mssql.VarChar `gorm:"not null;column:Unit"`  //校团委/学院名
	TeacherID         int           `gorm:"column:TeacherID"`      //业务指导老师
	TeacherName       mssql.VarChar `gorm:"not null;column:TeacherName"`
	TeacherPhone      mssql.VarChar `gorm:"not null;column:TeacherPhone"`
	AdminTeacherID    int           `gorm:"not null;column:AdminTeacherID"`
	AdminTeacherName  mssql.VarChar `gorm:"not null;column:AdminTeacherName"`
	AdminTeacherPhone mssql.VarChar `gorm:"not null;column:AdminTeacherPhone"`
	LeaderID          int           `gorm:"not null;column:LeaderID"` //社团负责人
	LeaderName        mssql.VarChar `gorm:"not null;column:LeaderName"`
	Mailbox           mssql.VarChar `gorm:"not null;column:Mailbox"`
	Phone             mssql.VarChar `gorm:"not null;column:Phone"`
	Introduction      mssql.VarChar `gorm:"not null;column:Introduction"`
	Attached          mssql.VarChar `gorm:"column:Attached"`
}
